VC = valac-0.32
PACKAGES = --pkg gtk+-3.0 --pkg gmodule-2.0 --pkg gee-0.8 --pkg libsoup-2.4 --pkg zlib
RETAILFLAGS = -g -X -O2 -X -fstack-protector -X --param=ssp-buffer-size=4 -X -Wformat -X -Werror=format-security
TARGET = nostril
DEBUGMODE = -D DEBUG

info:
	@echo ""
	@echo "\"make all\"     - compile stuff, receive executable named $(TARGET)"
	@echo "\"make install\" - make and install stuff (not implemented)"
	@echo "\"make debian\"  - create a debian package in pkg called $(TARGET).deb"
	@echo

retail:
	$(VC) $(PACKAGES) `find ./src/ -name "*.vala"` -o $(TARGET)

all:
	$(VC) $(DEBUGMODE) $(PACKAGES) `find ./src/ -name "*.vala"` -o $(TARGET)

source:
	$(VC) $(DEBUGMODE) $(PACKAGES) `find ./src/ -name "*.vala"` -C

debian: retail
	cp pkg/debian/buildscript.sh .
	./buildscript.sh
	rm buildscript.sh


install: all
	@echo "LEL"

